﻿@model GameCode.Models.PhoneApp.MyCodeModel
@{
    ViewBag.Title = "游戏特权 - 我的特权";
    Layout = "~/Views/Shared/_Layout.cshtml";
    //Layout = null;
}
<ul class="listview">
    <!--我的特权-->
    @foreach (var game in Model.GameProjectList)
    {
        <li><a onclick="loadUrl('PhoneApp/Game?id=@game.ID')" href="#" >
            <div class="codelist_item">
                <div class="codelist_item_left">
                    <img class="codelist_item_img" alt="@game.GameName" src="@string.Format("http://{0}/{1}", Request.Url.Host, game.LogoLink == null ? "" : game.LogoLink)" />
                </div>
                <div class="codelist_item_right">
                    <div class="codelist_item_time get">
                        @game.领取时间.ToString("yyyy-MM-dd")<br />
                        @game.领取时间.ToString("HH:mm")<br />
                    </div>
                </div>
                <div class="codelist_item_middle">
                    <div class="codelist_item_name">
                        @game.GameName</div>
                    <div class="codelist_item_detail">
                        @game.GameDescription
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
    }
    <!--我的特权-->
</ul>
<div class="clear"></div>